package com.ruoyi.web.controller.flowable.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.flowable.ui.modeler.domain.ModelInformation;
import org.flowable.ui.modeler.domain.ModelRelation;

import java.util.List;
import java.util.Map;

@Mapper
public interface ModelRelationMapper {

    List<ModelInformation> selectModelInformationModelId(String modelId);

    void deleteModelRelationByParentModelId(String parentModelId);

    void insertModelRelation(ModelRelation modelRelation);

    void deleteModelRelation(ModelRelation modelRelation);

    void updateModelRelation(ModelRelation modelRelation);

    List<ModelInformation> selectModelInformationByParentModelId(String parentModelId);

    List<ModelRelation> selectModelRelationByParentModelIdAndType(Map<String, Object> map);

}
